home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Demos / DTP / HomePublisher Demo / AHP Pouch / AutoCreate / Business ID / _Business Card Elegant < prev    next >
Encoding:
Text File  |  1993-09-17  |  3.8 KB  |  146 lines  |  [SGPA/SCPG]

  1. on Build
  2. dodocsetup
  3. locatefonts
  4. newpublication pages 1 columns 0 PageWidth 594 PageHeight 841 pageorientation portrait topmargin 36 bottommargin 36 leftmargin 70 rightmargin 70
  5. set gridsettings to 18,18
  6. set displayinvisibles to false
  7. set facingpages to false
  8. set gridsnap to false
  9. set lockguides to false
  10. set magneticguides to true
  11. set printcoloroptions to false
  12. set printcolornames to true
  13. set printcutouts to true
  14. set printregistrationmarks to false
  15. set printmarksoptions to no
  16. set printpageoptions to all
  17. set printtypeoptions to publication
  18. set spotcolor 1 to 0,0,0
  19. set spotcolor 2 to 65535,65535,65535
  20. set spotcolor 3 to 62167,2134,34028
  21. set spotcolor 4 to 0,32768,4528
  22. set spotcolor 5 to 577,43860,60159
  23. set spotcolor 6 to 56683,2242,1698
  24. set spotcolor 7 to 0,0,54272
  25. set spotcolor 8 to 64512,62333,1327
  26. set linepattern to 1
  27. set fillpattern to 2
  28. set color to 1
  29. set framelinetype to 1
  30. set mousecursor to busy
  31. set mousecursor to busy
  32. goto rightbackground
  33. PublicationSetup columns 1
  34. set mousecursor to busy
  35. goto page 1
  36. -- •p1 1•
  37. open story "address 1"
  38. draw rectangle 41,176,269,209
  39. close story
  40. set locked of last object to true
  41. set linepattern of last object to 0
  42. set croprectangle of last object to 0,0,228,33
  43. -- •p1 2•
  44. draw Rectangle 136,79,180,91
  45. set locked of last object to true
  46. set fillpattern of last object to 1
  47. set croprectangle of last object to 0,0,44,4
  48. -- •p1 3•
  49. open story "Company Name"
  50. draw rectangle 43,93,270,122
  51. close story 
  52. set locked of last object to true
  53. set linepattern of last object to 0
  54. set croprectangle of last object to 0,0,227,29
  55. -- •p1 4•
  56. draw Line 44,115,268,115
  57. set locked of last object to true
  58. -- •p1 5•
  59. open story "Person 1"
  60. draw rectangle 43,130,269,168
  61. close story
  62. set locked of last object to true
  63. set linepattern of last object to 0
  64. set croprectangle of last object to 0,0,226,31
  65. -- •p1 6•
  66. draw Line 296,67,306,67
  67. set locked of last object to true
  68. -- •p1 7•
  69. draw Line 296,216,306,216
  70. set locked of last object to true
  71. -- •p1 8•
  72. draw Line 290,218,290,227
  73. set locked of last object to true
  74. -- •p1 9•
  75. draw Line 290,56,290,65
  76. set locked of last object to true
  77. -- •p1 10•
  78. draw Line 13,67,23,67
  79. set locked of last object to true
  80. -- •p1 11•
  81. draw Line 29,56,29,65
  82. set locked of last object to true
  83. -- •p1 12•
  84. draw Line 13,216,23,216
  85. set locked of last object to true
  86. -- •p1 13•
  87. draw Line 29,218,29,227
  88. set locked of last object to true
  89. -- •p1 14•
  90. draw Line 297,67,307,67
  91. set locked of last object to true
  92. -- •p1 15•
  93. draw Line 297,216,307,216
  94. set locked of last object to true
  95. -- •p1 16•
  96. draw Line 290,223,290,232
  97. set locked of last object to true
  98. -- •p1 17•
  99. draw Line 29,223,29,232
  100. set locked of last object to true
  101. PublicationSetup columns 1
  102. choose maintool
  103. end Build
  104.  
  105.  
  106. on locatefonts
  107. global vHelvetica, vPalatino, vTimes, vNewYork, systemfonts
  108. put fontfamilies into systemfonts
  109. if systemfonts contains "New York" then put "New York"  into vNewYork
  110. else put "Geneva" into vNewYork
  111. if systemfonts contains "helvetica" then put "helvetica"  into vHelvetica
  112. else put "Geneva" into vHelvetica
  113. if systemfonts contains "Times" then put "Times" into vTimes
  114. else put vNewYork into vTimes
  115. if systemfonts contains "Palatino" then put "Palatino" into vPalatino
  116. else put vTimes into vPalatino
  117.  
  118. end locatefonts
  119.  
  120. on dodocsetup
  121. global usersOldMeasurement
  122. set lockscreen to true
  123. Set ShuffleTextObjects to false
  124. put measurements into usersOldMeasurement
  125. set measurements to points
  126. set displayguides to false
  127. set view to actual
  128. set itemdel to ","
  129. set worddel to space
  130. set linedel to cr
  131. set saveglobals to true
  132. progressdialog open
  133. progressdialog show "Creating publication"
  134. end dodocsetup
  135.  
  136. on textsetup thefont, theface, thesize, thejust
  137. global vHelvetica, vPalatino, vTimes, vNewYork
  138. set styleRecomposition to false
  139. set the textfont to value("v"&thefont)
  140. do "set the textface to "&theface
  141. set the textsize to thesize
  142. set the rulerjustification to thejust
  143. set styleRecomposition to true
  144. end textsetup
  145.  
  146.     ìú<BÏ